package com.forum.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.forum.dao.ItemDAO;
import com.forum.pojo.Subitem;
import com.forum.util.BaseAction;

@Component("itemAction")
@Scope("prototype")
public class ItemAction extends BaseAction{
	
	private ItemDAO itemDAO;
	private Subitem subitem; 
	
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		return super.execute();
	}
	
	public String createItem(){
		
		try {
			//this.getItemDAO().createItem(subitem);
		} catch (Exception e) {
			// TODO: handle exception
			return ERROR;
		}
		return SUCCESS;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	/*
	 * ������get��set�������� and ���췽������
	 * 
	 * */
	
	
	public ItemDAO getItemDAO() {
		return itemDAO;
	}
	@Resource
	public void setItemDAO(ItemDAO itemDAO) {
		this.itemDAO = itemDAO;
	}
	
	
}
